import { http } from "@/utils/http";

// 获取节能分析列表
export const getListAPI = data => {
  return http.request("post", "/energy/conservation/listConservation", {
    data
  });
};

// 新增/编辑
export const saveListAPI = data => {
  return http.request("post", "/energy/conservation/updateConservation", {
    data
  });
};

// 删除
export const deleteListAPI = data => {
  return http.request("post", "/energy/conservation/deleteConservation", {
    data
  });
};

// 分析
export const analysisAPI = data => {
  return http.request("post", "/energy/conservation/reportConservation", {
    data
  });
};
